package priv.yiyuan.example.design.player;

import priv.yiyuan.example.design.device.PlaybackDevice;

/**
 * 图片播放器
 * <p>
 * 桥接模式(扩展抽象部分)
 */
public class ImagePlayer extends MediaPlayer {

    public ImagePlayer(PlaybackDevice device) {
        super(device);
    }

    @Override
    public void playMedia(String content) {
        System.out.println("播放图片: ");
        device.play("图片", content);
    }
}
